package com.qikux.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.haredot.annotation.Column;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public abstract class Entity {
    /**
     * 主键
     */
    private Long id ;
    /**
     * 录入时间
     */
    @Column("create_time")
    private LocalDateTime createTime ;

    /**
     * 更新时间
     */
    @Column("update_time")
    private LocalDateTime updateTime ;
    /**
     * 删除时间
     */
    @Column("delete_time")
    private LocalDateTime deleteTime ;

    /**
     * 删除标记
     */
    private boolean del ;
}
